<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> 
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

    <base href="<%=basePath%>">
    
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css" />
	<link rel="stylesheet" type="text/css" href="easyui/themes/icon.css" />
	<link rel="stylesheet" type="text/css" href="css/index.css" />
	
	<title>index Page</title>

</head>
<body>

	<div style="margin:0;padding:5px 50px 0 50px;color:#333;">
		<fieldset>
			<legend>查看公告</legend>
			<div style="padding:5px 0 0 50px; "align="right">
				<a href="#" class="easyui-linkbutton" style="height:24px;" onclick="javascript :history.back(-1)">返回</a>
				<a href="#" class="easyui-linkbutton" style="height:24px;" onclick="edit(${noticePo.noticeId});">编辑</a>
				<c:if test="${isEdit == '1'}">
					<a href="#" class="easyui-linkbutton" style="height:24px;" onclick="edit(${noticePo.noticeId});">编辑</a>
				</c:if>
			</div>
			<div style="margin:0;padding:5px 0 0 50px;color:#333;">
				<div align="center">
					<font size="+3" color="black">${noticePo.noticeTitle }</font>
					<br/><font color="blue">
					[ ${noticePo.noticeAddUser } ]发布于[
					<fmt:formatDate value="${noticePo.noticeAddTime }" pattern="yyyy-MM-dd HH:mm:ss" /> 
					]</font>
				</div>
				<br/>${noticePo.noticeContent }
				
			</div>
		</fieldset>
	</div>
	
	<script type="text/javascript" src="<%=path%>/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="<%=path%>/easyui/ajaxfileupload.js"></script>
	<script type="text/javascript" src="<%=path%>/easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=path%>/easyui/locale/easyui-lang-zh_CN.js" ></script>
	<script type="text/javascript">
		function edit(noticeId){
			window.location.href = "noticeAction!getNoticeByNoticeId?noticeId="+noticeId+"&look=modify";
		}
		$(function () {
			parent.$('#nav').tree('reload');
		});
	</script>
</body>
</html>